namespace Identity.Application.Contracts.Common;

public class CreateRoleResult
{
    public bool Succeeded { get; init; }
    public IEnumerable<string> Errors { get; init; } = Array.Empty<string>();

    public static CreateRoleResult Success() => new() { Succeeded = true};
    public static CreateRoleResult Failed(IEnumerable<string> errors) => new() { Succeeded = false, Errors = errors };

}